/**
 * @Copyright (C) 2019 广州金鹏集团有限公司.
 * 本系统是商用软件,未经授权擅自复制或传播本程序的部分或全部将是非法的.
 * @创建人: 赵力
 * @创建时间: 2019-01-25 15:23
 * @版本: V1.0
 */
package com.ikcai.enginegraph.controller;

import com.ikcai.enginegraph.domain.base.BaseRelationship;
import com.ikcai.enginegraph.service.IBaseRelationshipService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @类功能说明:
 * @创建人: 赵力
 * @创建时间: 2019-01-25 15:23
 */
@RestController
@RequestMapping("/relationship")
public class RelationshipController {

    @Autowired
    private IBaseRelationshipService service;

    @RequestMapping(path = "/deleteRelationshipById", method = RequestMethod.POST)
    public boolean deleteRelationshipById(@RequestBody BaseRelationship relationship) {
        return service.deleteRelationshipById(relationship.getId());
    }
}
